<?php
echo "<pre>";
// define array
$rainbow = array('violet', 'indigo', 'blue', 'green', 'yellow', 'orange', 'red');

//$arr = array_slice($rainbow, 1, 22);
//$arr = array_slice($rainbow, 1, 22);
$arr = array_slice($rainbow, -4, -3);
print_r($arr);

